package com.his.j259w264.pojo;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户表(User)实体类
 *
 * @author EdgeYu
 * @since 2021-09-16 10:15:47
 */

@ApiModel(value = "User", description = "用户表")
public class User implements Serializable {
    private static final long serialVersionUID = -65472335005689172L;

    @ApiModelProperty(name = "id", notes = "${column.comment}", dataType = "Integer", required = true)
    private Integer id;
    /**
     * 用户名
     */
    @ApiModelProperty(name = "username", notes = "用户名", dataType = "String", required = true)
    private String username;
    /**
     * 密码
     */
    @ApiModelProperty(name = "password", notes = "密码", dataType = "String", required = true)
    private String password;
    /**
     * 电话号码
     */
    @ApiModelProperty(name = "phone", notes = "电话号码", dataType = "String", required = true)
    private String phone;
    /**
     * 登录错误次数
     */
    @ApiModelProperty(name = "errorLogin", notes = "登录错误次数", dataType = "Integer", required = true)
    private Integer errorLogin;
    /**
     * 盐
     */
    @ApiModelProperty(name = "salt", notes = "盐", dataType = "String", required = true)
    private String salt;
    /**
     * 编辑者
     */
    @ApiModelProperty(name = "editorsId", notes = "编辑者", dataType = "Integer", required = true)
    private Integer editorsId;
    /**
     * 创建者
     */
    @ApiModelProperty(name = "createId", notes = "创建者", dataType = "Integer", required = true)
    private Integer createId;
    /**
     * token
     */
    @ApiModelProperty(name = "token", notes = "token", dataType = "String", required = true)
    private String token;
    /**
     * 账号锁定状态
     */
    @ApiModelProperty(name = "state", notes = "账号锁定状态", dataType = "Integer", required = true)
    private Integer state;
    /**
     * 创建时间
     */
    @ApiModelProperty(name = "created", notes = "创建时间", dataType = "Date", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date created;
    /**
     * 编辑时间
     */
    @ApiModelProperty(name = "edited", notes = "编辑时间", dataType = "Date", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date edited;
    /**
     * 最后一次登录时间
     */
    @ApiModelProperty(name = "lastLogin", notes = "最后一次登录时间", dataType = "Date", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLogin;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getErrorLogin() {
        return errorLogin;
    }

    public void setErrorLogin(Integer errorLogin) {
        this.errorLogin = errorLogin;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getEditorsId() {
        return editorsId;
    }

    public void setEditorsId(Integer editorsId) {
        this.editorsId = editorsId;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getEdited() {
        return edited;
    }

    public void setEdited(Date edited) {
        this.edited = edited;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

}
